<?php

use App\Http\Controllers\admin\AdminController;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});


Route::get('/login', [AdminController::class, 'index'])->name('login');

Route::get('/dashboard', [AdminController::class, 'dashboard'])->name('admin.dashboard');
Route::get('/Package_List', [AdminController::class, 'Package_List'])->name('admin.Package_List');
Route::get('/package/detail/{Package_Id}', [AdminController::class, 'Package_Detail'])->name('admin.Package_Detail');
Route::get('/Courier_List', [AdminController::class, 'Courier_List'])->name('admin.Courier_List');
Route::get('/couriers/create', [AdminController::class, 'Create_New_Courier'])->name('admin.couriers.create');
Route::post('/couriers', [AdminController::class, 'store'])->name('admin.store');
Route::get('/Password_Reset/{Package_Id}',[AdminController::class,'Password_Reset'])->name('admin.Password_Reset');
Route::post('/staff/{staff}/update-password', [AdminController::class, 'Update_Password'])
    ->name('admin.update_password');

Route::get('/Password_Reset_Trucker/{Package_Id}',[AdminController::class,'Password_Reset_Trucker'])->name('admin.Password_Reset_Trucker');
Route::get('/Password_Reset_Successful',[AdminController::class,'Password_Reset_Successful'])->name('admin.Password_Reset_Successful');
//Route::get('/Password_Reset_Trucker',[AdminController::class,'Password_Reset_Trucker'])->name('admin.Password_Reset_Trucker');
Route::get('/Password_Reset_Successful_Trucker',[AdminController::class,'Password_Reset_Successful_Trucker'])->name('admin.Password_Reset_Successful_Trucker');
Route::get('/Create_New_Courier', [AdminController::class, 'Create_New_Courier'])->name('admin.Create_New_Courier');

Route::post('/couriers/store', [AdminController::class, 'store'])->name('admin.store');
Route::post('/couriers_Trucker/store', [AdminController::class, 'store_Trucker'])->name('admin.store_Trucker');


Route::get('/Create_New_Trucker', [AdminController::class, 'Create_New_Trucker'])->name('admin.Create_New_Trucker');
Route::get('/Campus_List', [AdminController::class, 'Campus_List'])->name('admin.Campus_List');
Route::get('/Trucker_List', [AdminController::class, 'Trucker_List'])->name('admin.Trucker_List');
Route::get('/XX_Module_A', function () {
    return view('index.dashboard');
})->middleware('auth')->name('admin.dashboard.index');


